<?php
// 中间件配置
use app\middleware\AdminAuthCheckMiddleware;
use app\middleware\AdminLoginCheckMiddleware;
use app\middleware\LogMiddleware;

return [
    // 别名或分组
    'alias'    => [
        'login' => AdminLoginCheckMiddleware::class,
        'auth'  => AdminAuthCheckMiddleware::class,
        'log'   => LogMiddleware::class
    ],
    // 优先级设置，此数组中的中间件会按照数组中的顺序优先执行
    'priority' => [
//        'login' => AdminLoginCheckMiddleware::class,
//        'auth'  => AdminAuthCheckMiddleware::class,
//        'log'   => LogMiddleware::class
    ],
];
